/* ==========================================================================
   AIA 54 — Arts Invest Africa 54
   Dark site · Light/glass nav · Light/glass mobile menu
   --------------------------------------------------------------------------
   Sections:
   1. Theme tokens (dark)
   2. Base + typography
   3. Cursor / noise / decorations
   4. Hero (cinematic — cream text preserved)
   5. Slideshow / scroll indicator
   6. Marquee (dark)
   7. Investment cards
   8. Buttons
   9. Reveal + custom animations
   10. Navigation (LIGHT glassmorphic — exception to dark site)
   11. Mobile menu (LIGHT glassmorphic — matches nav)
   12. Form
   13. Email / link styling
   14. About feature image
   15. Footer (dark)
   16. Impact / Vision pattern background (dark)
   17. Tailwind utility overrides
   18. Splash loader
   19. Responsive tweaks
   ========================================================================== */


/* ==========================================================================
   1. THEME TOKENS — single DARK theme
   ========================================================================== */
:root {
  --bg:           #0a0a0a;   /* page background (ink) */
  --surface:      #121212;   /* card / panel */
  --surface-2:    #1a1a1a;
  --line:         rgba(255, 255, 255, 0.10);
  --line-strong:  rgba(255, 255, 255, 0.20);

  --text:         #ffffff;   /* pure white body text */
  --text-soft:    #ffffff;
  --text-mute:    rgba(255, 255, 255, 0.6);

  --accent:       #c8102e;   /* crimson brand */
  --warm:         #c9a96e;   /* gold */

  --bone:         var(--text);
  --gold:         var(--warm);

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==========================================================================
   2. BASE + TYPOGRAPHY
   ========================================================================== */
*  { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

body { cursor: default; }

::selection { background: var(--accent); color: #ffffff; }

::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Editorial display headings — Fraunces, used by hero ONLY */
.display {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.95;
}
.display-tight { letter-spacing: -0.035em; line-height: 0.92; }

/* Eyebrow + section meta */
.eyebrow {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--warm);
}
.section-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--warm);
}
.mono-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
}

/* Body copy */
.body-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
}

/* Counter numbers — solid white */
.counter-num {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text);
}

/* Brand text mark */
.brand-mark {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--text);
}
.brand-mark .red { color: var(--accent); }


/* ==========================================================================
   3. CURSOR / NOISE / DECORATIONS
   ========================================================================== */
.noise::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.15s ease, width 0.25s ease, height 0.25s ease;
  transform: translate(-50%, -50%);
}
.cursor.hover {
  width: 40px;
  height: 40px;
  background: var(--accent);
}
@media (max-width: 768px) { .cursor { display: none; } }

.diagonal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--warm), transparent);
  opacity: 0.5;
}
.pattern-dots {
  background-image: radial-gradient(circle, rgba(201, 169, 110, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
}


/* ==========================================================================
   4. HERO — cinematic, cream tones preserved
   ========================================================================== */
.hero-gradient {
  background: linear-gradient(180deg,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.55) 30%,
    rgba(10, 10, 10, 0.6) 60%,
    var(--bg) 100%);
}


/* ==========================================================================
   5. SLIDESHOW / SCROLL INDICATOR
   ========================================================================== */
.slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.2s ease;
  transform: scale(1.08);
}
.slide.active { opacity: 1; }

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  40%  { transform: scaleY(1); transform-origin: top; }
  60%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.scroll-line { animation: scrollLine 2.4s ease-in-out infinite; }


/* ==========================================================================
   6. MARQUEE — dark strip
   ========================================================================== */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 40s linear infinite; }


/* ==========================================================================
   7. INVESTMENT CARDS — dark imagery, white-on-image labels
   ========================================================================== */
.invest-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out);
}
.invest-card .img {
  transition: transform 1.2s var(--ease-out), filter 0.6s ease;
  filter: grayscale(0.55) brightness(0.55);
}
.invest-card:hover .img {
  transform: scale(1.1);
  filter: grayscale(0) brightness(0.85);
}
.invest-card .overlay {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, 0.95) 100%);
}
.invest-card .label { transition: transform 0.5s var(--ease-out); }
.invest-card:hover .label { transform: translateY(-8px); }
.invest-card .desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  transition: max-height 0.6s var(--ease-out),
              opacity 0.4s ease, margin-top 0.4s ease;
}
.invest-card:hover .desc {
  max-height: 200px;
  opacity: 1;
  margin-top: 12px;
}

.invest-card .label .eyebrow { color: var(--accent); }
.invest-card .label .sector-title,
.invest-card .label .mono-label { color: #ffffff; }

.sector-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}


/* ==========================================================================
   8. BUTTONS
   ========================================================================== */
.btn-magnetic {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: color 0.3s ease;
}
.btn-magnetic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: -1;
}
.btn-magnetic:hover::before { transform: translateY(0); }

.btn-ghost {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}
.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: -1;
}
.btn-ghost:hover { color: var(--bg); }
.btn-ghost:hover::before { transform: translateY(0); }


/* ==========================================================================
   9. REVEAL + CUSTOM ANIMATIONS
   ========================================================================== */
.reveal-wrap { overflow: hidden; display: block; }
.reveal-line { display: block; transform: translateY(110%); }

@keyframes aiaFadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes aiaSlideInLeft  { from { opacity: 0; transform: translate3d(-40px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes aiaSlideInRight { from { opacity: 0; transform: translate3d( 40px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes aiaSlideInUp    { from { opacity: 0; transform: translate3d(0, 40px, 0); }  to { opacity: 1; transform: translate3d(0, 0, 0); } }

.fade-in { opacity: 0; animation: aiaFadeIn 0.9s ease forwards; animation-delay: 0.1s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.float-slow { animation: float 6s ease-in-out infinite; }


/* ==========================================================================
   10. NAVIGATION — LIGHT glassmorphic (exception to dark site)
   ========================================================================== */
.nav-light {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.nav-light.nav-scrolled {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.10);
  border-bottom-color: rgba(0, 0, 0, 0.10);
}
.nav-light .nav-inner { min-height: 76px; }

.nav-light .nav-logo {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.nav-light .nav-logo-link:hover .nav-logo { transform: scale(1.04); }

/* Nav links — pure black on the light bar */
.nav-light .nav-link {
  color: #000000;
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: color 0.35s ease, transform 0.35s ease;
}
.nav-light .nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}
.nav-light .nav-link:hover { color: var(--accent); transform: translateY(-2px); }
.nav-light .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-light .nav-cta {
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.25);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.nav-light .nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: -1;
}
.nav-light .nav-cta:hover {
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.nav-light .nav-cta:hover::before { transform: translateY(0); }

/* Mobile hamburger — black bars (against the light nav) */
.nav-burger span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: #000000;
  transition: all 0.35s ease;
}
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }


/* ==========================================================================
   11. MOBILE MENU — LIGHT glass (matches nav)
   ========================================================================== */
.mobile-menu-glass {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
          backdrop-filter: blur(22px) saturate(160%);
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-glass.open { transform: translateX(0); }

.mobile-menu-glass .mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mobile-menu-glass .mobile-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #000000;
  letter-spacing: 0.02em;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: color 0.3s ease;
}
.mobile-menu-glass .mobile-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.7, 0, 0.3, 1);
}
.mobile-menu-glass .mobile-link:hover { color: var(--accent); }
.mobile-menu-glass .mobile-link:hover::after { transform: scaleX(1); transform-origin: left; }

.mobile-menu-glass.open .mobile-link {
  animation: aiaSlideInUp 0.55s var(--ease-out) forwards;
}
.mobile-menu-glass.open .mobile-link:nth-child(1) { animation-delay: 0.08s; }
.mobile-menu-glass.open .mobile-link:nth-child(2) { animation-delay: 0.16s; }
.mobile-menu-glass.open .mobile-link:nth-child(3) { animation-delay: 0.24s; }
.mobile-menu-glass.open .mobile-link:nth-child(4) { animation-delay: 0.32s; }
.mobile-menu-glass.open .mobile-link:nth-child(5) { animation-delay: 0.40s; }

.mobile-menu-glass .mobile-tag {
  position: absolute;
  bottom: 36px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--warm);
}


/* ==========================================================================
   12. FORM — dark
   ========================================================================== */
.field {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 18px 4px;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.4s ease;
  outline: none;
}
.field:focus { border-color: var(--accent); }
.field::placeholder { color: rgba(255, 255, 255, 0.45); }

select.field { background: var(--bg); }


/* ==========================================================================
   13. EMAIL / LINK STYLING
   ========================================================================== */
.email-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  word-break: break-word;
}


/* ==========================================================================
   14. ABOUT FEATURE IMAGE
   ========================================================================== */
.about-feature {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.about-feature .feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.6s var(--ease-out);
}
.about-feature:hover .feature-img { transform: scale(1.04); }
.about-feature::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line-strong);
  pointer-events: none;
  z-index: 2;
}

.img-tone { filter: contrast(1.05) saturate(0.9) brightness(0.88); }


/* ==========================================================================
   15. FOOTER — dark
   ========================================================================== */
footer { background: var(--bg); }


/* ==========================================================================
   16. IMPACT / VISION SECTION — dark pattern background
   ========================================================================== */
.pattern-vision {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0),
    radial-gradient(circle at 1px 1px, rgba(201, 169, 110, 0.10) 1.2px, transparent 0),
    linear-gradient(45deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size:
    22px 22px,
    160px 160px,
    44px 44px,
    44px 44px;
  background-position: 0 0, 11px 11px, 0 0, 0 0;
}
.pattern-vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(200, 16, 46, 0.10), transparent 60%),
    radial-gradient(60% 50% at 85% 75%, rgba(201, 169, 110, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
  pointer-events: none;
}


/* ==========================================================================
   17. TAILWIND UTILITY OVERRIDES — pure white body text in dark mode
   --------------------------------------------------------------------------
   The Tailwind CDN compiles `bone: '#f5f1e8'` (slight cream). We override
   every text-bone/* variant to pure white #ffffff for maximum contrast
   on the dark theme. Hero is excluded so it keeps its cinematic palette.
   ========================================================================== */
section:not(#hero) .text-bone,
section:not(#hero) .text-bone\/40,
section:not(#hero) .text-bone\/50,
section:not(#hero) .text-bone\/60,
section:not(#hero) .text-bone\/65,
section:not(#hero) .text-bone\/70,
section:not(#hero) .text-bone\/75,
section:not(#hero) .text-bone\/80,
section:not(#hero) .text-bone\/90,
section:not(#hero) .body-text,
section:not(#hero) .email-link,
section:not(#hero) .sector-title,
section:not(#hero) p:not(.eyebrow):not(.section-num):not(.mono-label),
section:not(#hero) .mono-label,
footer .text-bone,
footer .text-bone\/40,
footer .text-bone\/65,
footer .text-bone\/70,
footer .body-text,
footer .email-link,
footer p {
  color: #ffffff !important;
}

/* Eyebrows + section numbers stay gold for hierarchy */
.eyebrow,
.section-num,
section:not(#hero) .eyebrow,
section:not(#hero) .section-num,
footer .eyebrow,
footer .section-num {
  color: var(--warm) !important;
}

/* Brand accents */
.text-crimson { color: var(--accent) !important; }
.text-gold    { color: var(--warm)   !important; }

/* Investment cards keep their own treatment (white text on dark imagery) */
.invest-card .sector-title { color: #ffffff !important; }
.invest-card .desc { color: rgba(255, 255, 255, 0.88) !important; }
.invest-card .label .eyebrow { color: var(--accent) !important; }


/* ==========================================================================
   18. SPLASH LOADER — white background with logo
   ========================================================================== */
.loader-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
.loader-inner { text-align: center; }
.loader-logo  {
  width: clamp(140px, 18vw, 220px);
  height: auto;
  display: block;
  margin: 0 auto 28px;
}
.loader-bar-track {
  width: 160px;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  overflow: hidden;
}
.loader-bar { width: 0%; height: 100%; background: var(--accent); }


/* ==========================================================================
   19. RESPONSIVE TWEAKS
   ========================================================================== */
@media (max-width: 768px) {
  .display { line-height: 1; }
  .nav-light .nav-logo { height: 56px; }
  .nav-light .nav-inner { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .mobile-menu-glass .mobile-link { font-size: 1.4rem; }
}
